package com.xing.binbackend.pattern.factory12.operation.lazyinit;

import org.springframework.beans.factory.FactoryBean;

// 自定义工厂类
public class PaymentFactoryBean implements FactoryBean<PaymentProcessor> {
    @Override
    public PaymentProcessor getObject() {
        return new WechatPay(); // 复杂创建逻辑
    }

    @Override
    public Class<?> getObjectType() {
        return PaymentProcessor.class;
    }
}
